// 通用表单数据
import { SearchSort, SelectModal, TreeSearchModal } from '../Template/ProTableOptions'
import { BuiltInData } from './tableOptions'

export const commonTableList = {
    SearchSort: {
        dataIndex: 'SearchSort',
        title: '排序条件',
        valueType: 'hidden',
        sort: 1,
        width: 100,
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
        renderFormItem: ({ originProps }) => <SearchSort options={originProps.selectType} />,
    },
    uuid: {
        dataIndex: 'uuid',
        title: '编号',
        valueType: 'hidden',
        width: 100,
        hideInAdded: true,
        hideInTable: true,
        hideInSearch: true,
    },
    code: {
        dataIndex: 'code',
        title: '编码',
        valueType: 'input',
        width: 150,
        hideInSearch: true,
    },
    tableName: {
        dataIndex: 'tableName',
        title: '名称',
        valueType: 'input',
        ellipsis: true,
        rules: true,
        width: 150,
    },
    fullName: {
        dataIndex: 'fullName',
        title: '全名称',
        valueType: 'input',
        ellipsis: true,
        rules: true,
        width: 150,
    },
    organizationUuid: {
        dataIndex: 'organizationUuid',
        title: '组织机构',
        valueType: 'select',
        ellipsis: true,
        valueEnum: {},
        rules: true,
        renderFormItem: ({ originProps }) => <SelectModal options={originProps.valueEnum} />,
    },
    projectUuid: {
        dataIndex: 'projectUuid',
        title: '项目名称',
        valueType: 'select',
        ellipsis: true,
        valueEnum: {},
        rules: true,
        width: 160,
        renderFormItem: ({ originProps }) => <SelectModal options={originProps.valueEnum} />,
    },
    parentUuid: {
        dataIndex: 'parentUuid',
        title: '父节点',
        valueType: 'treeSelect',
        fieldProps: {},
        ellipsis: true,
        rules: true,
        width: 150,
        renderFormItem: ({ originProps }) => <TreeSearchModal options={originProps.fieldProps} />
    },
    isEnabled: {
        dataIndex: 'isEnabled',
        title: '启用状态',
        valueType: 'select',
        width: 100,
        valueEnum: BuiltInData.isEnabled,
        enumObject: true,
        hideInSearch: true,
    },
    sortId: {
        dataIndex: 'sortId',
        title: '排序',
        width: 100,
        valueType: 'number',
        hideInSearch: true,
    },
    remark: {
        dataIndex: 'remark',
        title: '备注信息',
        width: 200,
        ellipsis: true,
        valueType: 'textarea',
        hideInSearch: true,
    },
    createUserName: {
        dataIndex: 'createUserName',
        title: '创建姓名',
        ellipsis: true,
        width: 100,
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    createTime: {
        dataIndex: 'createTime',
        title: '创建时间',
        ellipsis: true,
        width: 200,
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    updateUserName: {
        dataIndex: 'updateUserName',
        title: '更新姓名',
        ellipsis: true,
        width: 100,
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    updateTime: {
        dataIndex: 'updateTime',
        title: '更新时间',
        ellipsis: true,
        width: 200,
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    systemOperation: {
        dataIndex: 'systemOperation',
        title: '操作',
        fixed: 'right',
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    BeginStatDate: {
        dataIndex: 'BeginStatDate',
        title: '开始日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndStatDate: {
        dataIndex: 'EndStatDate',
        title: '结束日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginAttendanceTime: {
        dataIndex: 'BeginStatDate',
        title: '开始日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndAttendanceTime: {
        dataIndex: 'EndStatDate',
        title: '结束日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginEntryTime: {
        dataIndex: 'BeginEntryTime',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndEntryTime: {
        dataIndex: 'EndEntryTime',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginProduce: {
        dataIndex: 'BeginProduce',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndProduce: {
        dataIndex: 'EndProduce',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeinVideoDate: {
        dataIndex: 'BeginProduce',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndVideoDate: {
        dataIndex: 'EndProduce',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginAlarmTime: {
        dataIndex: 'BeginProduce',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndAlarmTime: {
        dataIndex: 'EndProduce',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    StartTime: {
        dataIndex: 'StartTime',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginTime: {
        dataIndex: 'BeginTime',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndTime: {
        dataIndex: 'EndTime',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },

    StartDate: {
        dataIndex: 'StartDate',
        title: '开始时间',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndDate: {
        dataIndex: 'EndDate',
        title: '结束时间',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginSecurityDate: {
        dataIndex: 'beginSecurityDate',
        title: '开始日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndSecurityDate: {
        dataIndex: 'endSecurityDate',
        title: '结束日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
}


